package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class SendPathDto extends BaseDto {

    @NotEmpty(message = "地址不能为空")
    @ApiModelProperty(value = "地址")
    private List<String> path;

    @NotBlank(message = "详细地址不能为空")
    @ApiModelProperty(value = "详细地址")
    private String pathInfo;

    @NotBlank(message = "收货人不能为空")
    @ApiModelProperty(value = "收货人姓名")
    private String name;

    @NotBlank(message = "收货人手机号不能为空")
    @ApiModelProperty(value = "收货人手机号")
    private String phone;

    @NotNull(message = "是否为默认地址不能为空")
    @ApiModelProperty(value = "是否为默认地址")
    private Boolean isDefault;

    @ApiModelProperty(value = "用户手机号")
    private String userPhone;
}
